<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header('Content-Type: text/html; charset=utf-8'); 
include_once('../fm/comm.php');
$myt = new thunder();
$sql = "select goods_id, goods_sn, goods_name from ecs_goods";
$data = $myt->getAll($sql);

$info = '';
foreach($data as $d){
	$info .= "<info>
			<goods_id>".$d['goods_id']."</goods_id>
			<goods_sn>".$d['goods_sn']."</goods_sn>
			<goods_name>".$d['goods_name']."</goods_name>
			</info>";
		
}
$result = "<goods>".$info."</goods>";
echo $result;
?>